#include <REGX52.H>
void Delay1ms(unsigned int xms)	//@12.000MHz
{
	while(xms){
	unsigned char data i, j;

	i = 2;
	j = 239;
	do
	{
		while (--j);
	} while (--i);
	xms=xms-1;
	}	
}

void main(void)
{
	while(1)
	{
		P2=0xFE;
		Delay1ms(800);
		P2=0xFF;
		Delay1ms(800);
		
	}
}